/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dto;

import java.util.ArrayList;

/**
 *
 * @author lab
 */
public class QuestionSet {

    ArrayList<Question> list = new ArrayList<Question>();

    public QuestionSet() {
    }

    public QuestionSet(ArrayList<Question> list) {
        this.list = list;
    }

    /**
     * 
     * @return list of questions
     */
    public ArrayList<Question> getQuestionList() {
        return list;
    }

    /**
     * set list of question
     * @param listOfQuestions list of questions
     */
    public void setQuestionList(ArrayList<Question> listOfQuestions) {
        this.list = listOfQuestions;
    }

    /**
     * add a question
     * @param question
     */
    public void addQuestion(Question question) {
        this.list.add(question);
    }

    /**
     * remove specified question
     * @param question
     */
    public void removeQuestion(Question question) {
        this.list.remove(question);
    }

    /**
     * remove question at specified position
     * @param index
     */
    public void removeQuestion(int index) {
        this.list.remove(index);
    }
}
